<%@page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@page import="org.jpass.dc.business.admin.bean.AdminBean" %>
<%
	AdminBean onlineAdmin = (AdminBean)request.getAttribute("admin");
	String id = onlineAdmin.getId();
	String name = onlineAdmin.getName();
	String realName = onlineAdmin.getRealName();
	
%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<base href="<%=basePath%>">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>PaaS平台IDE--系统管理后台</title>
<link href="backstage/css/main.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="backstage/javascript/main.js"></script>
<script type="text/javascript" src="common/javascript/win_greyBox.js"></script>
<script type="text/javascript" src="common/javascript/msgBox.js"></script>

</head>
<body onload="daytime(); initPage(); initDeleteAdd();">
	<div id="header">
		<div class="background"></div>
		<div class="welcome">
			<div class="speech"><span class="word">欢迎您！</span><%=name %></div>
			<div class="name"><span id="level_realName"><%=onlineAdmin.getAuthorityName()+": " + realName%></span></div>
		</div>
		<div class="time_icon">
			<img src="backstage/images/time.gif" />
		</div>
		<div class="daytime">
			<span id="daytime"></span>
		</div>
		<div class="operate">
			<ul>
				<li><img src="backstage/images/home.gif" title="返回系统首页"
					onmouseover="this.src='backstage/images/home1.gif'"
					onmouseout="this.src='backstage/images/home.gif'" onclick="home();" /></li>
				<li><img src="backstage/images/advance.gif" title="转到上一页"
					onmouseover="this.src='backstage/images/advance1.gif'"
					onmouseout="this.src='backstage/images/advance.gif'" onclick="advance();" /></li>
				<li><img src="backstage/images/back.gif" title="转到下一页"
					onmouseover="this.src='backstage/images/back1.gif'"
					onmouseout="this.src='backstage/images/back.gif'" onclick="back();" /></li>
				<li><img src="backstage/images/refresh.gif" title="刷新当前页"
					onmouseover="this.src='backstage/images/refresh1.gif'"
					onmouseout="this.src='backstage/images/refresh.gif'" onclick="refresh();" /></li>
				<li><img src="backstage/images/info.gif" title="修改个人信息"
					onmouseover="this.src='backstage/images/info1.gif'"
					onmouseout="this.src='backstage/images/info.gif'" onclick="updateAdmin('<%=id%>');"/></li>
				<li><img src="backstage/images/exit.gif" title="安全退出系统"
					onmouseover="this.src='backstage/images/exit1.gif'"
					onmouseout="this.src='backstage/images/exit.gif'" onclick="exit();" /></li>
			</ul>
		</div>
		<div class="turnToIDE"><a onclick="turnToIDE('admin');">跳转至IDE开发环境</a></div>
	</div>
	<div id="content">
		<div id="content_left">
			<div class="left_head">
				<div class="left_icon"><img src="backstage/images/pic.png"/></div>
			<div class="updateMyPass" id="updateMyPass"><a onclick="updateMyPass('<%=id%>');">修改个人密码</a></div>
				<!-- <div class="left_icon">
					<ul>
						<li><img src="backstage/images/system_manage.gif"
							onmouseover="this.src='backstage/images/system_manage1.gif'"
							onmouseout="this.src='backstage/images/system_manage.gif'" onclick="" /></li>
						<li><img src="backstage/images/log_manage.gif"
							onmouseover="this.src='backstage/images/log_manage1.gif'"
							onmouseout="this.src='backstage/images/log_manage.gif'" onclick="" /></li>
						<li><img src="backstage/images/data_analyse.gif"
							onmouseover="this.src='backstage/images/data_analyse1.gif'"
							onmouseout="this.src='backstage/images/data_analyse.gif'" onclick="" /></li>
					</ul>
				</div> -->
			</div>
			<div class="left_middle"></div>
			<div class="left_nav">
				<ul>
					<li><img src="backstage/images/user_manage.png"
						onmouseover="this.src='backstage/images/user_manage1.png'"
						onmouseout="this.src='backstage/images/user_manage.png'" onclick="userManage();" />
						</li>
					<li id="adminManage" style="display:none;"><img src="backstage/images/admin_manage.png"
						onmouseover="this.src='backstage/images/admin_manage1.png'"
						onmouseout="this.src='backstage/images/admin_manage.png'" onclick="adminManage();" /></li>
					<li><img src="backstage/images/resource_manage.png"
						onmouseover="this.src='backstage/images/resource_manage1.png'"
						onmouseout="this.src='backstage/images/resource_manage.png'" onclick="resourceManage();" /></li>
					<li><img src="backstage/images/notice_manage.png"
						onmouseover="this.src='backstage/images/notice_manage1.png'"
						onmouseout="this.src='backstage/images/notice_manage.png'" onclick="noticeManage();" /></li>
				</ul>
			</div>
		</div>
		<div id="content_right">
			<div class="rig_top"></div>
			<div class="rig_left_top"></div>
			<div class="rig_right_top"></div>
			<div class="rig_right"></div>
			<div class="rig_left"></div>
			<div class="rig_bottom"></div>
			<div class="rig_left_bottom"></div>
			<div class="rig_right_bottom"></div>
			<div class="deleteMany" id="deleteUser" style="display:none;"><a onclick="deleteMany('user');">批量删除</a></div>
			<div class="deleteMany" id="deleteAdmin" style="display:none;"><a onclick="deleteMany('admin');">批量删除</a></div>
			<div class="add" id="addUser" style="display:none;"><a onclick="add('user');">新建用户</a></div>
			<div class="add" id="addAdmin" style="display:none;"><a onclick="add('admin');">新建管理员</a></div>
			<div id="initpage" class="paging">
				<span class="pageContent">
				<ul>
					<li class="search">按用户名搜索：<input id="findUsername" type="text" />&nbsp;<a onclick="searchUser();">搜索</a>&nbsp;&nbsp;<a onclick="clearSearch();">清空搜索</a></li>
					<li><a onclick="firstpage();">首页</a></li>
					<li><a id="backUse" onclick="backpage();">上一页</a><span id="backUseless" class="backUseless">上一页</span></li>
					<li>第&nbsp;<select id="current" class="pagingSelect" onchange="select();"></select>&nbsp;页
					</li>
					<li><a id="nextUse" onclick="nextpage();">下一页</a><span id="nextUseless">下一页</span></li>
					<li><a onclick="lastpage();">末页</a></li>
					<li>共&nbsp;<span id="pageCount" class="total"></span>&nbsp;页</li>
					<li>有&nbsp;<span id="totalCount" class="total"></span>&nbsp;条记录</li>
				</ul>
				</span>
			</div>
			<div class="iframe_body">
				<iframe id="mainframe" src="userManage" frameborder="0" height="620px" width="1235px"
					scrolling="auto"> </iframe>
			</div>
		</div>
	</div>
	<div id="footer"></div>
<script type="text/javascript">
	function initAdmin(){
		if('<%=onlineAdmin.getAuthority()%>'=="0"){//只有管理员才能管理系统管理员
			document.getElementById("adminManage").style.display="inline";
		}
	}	
	initAdmin();
</script>
</body>
<%@include file="jsp/adminInfoFormDiv.jsp"%>
<%@include file="jsp/userInfoFormDiv.jsp"%>
<%@include file="jsp/resetPassFormDiv.jsp"%>
<%@include file="jsp/addUserFormDiv.jsp"%>
<%@include file="jsp/addAdminFormDiv.jsp"%>
<%@include file="jsp/updateMyPassFormDiv.jsp"%>
</html>
